#    2、有以下列表:list1 = [7, -8, 5, 4, 0, -2, -5]
#    要求:1.正数在前，负数在后  2.正数从小到大  3.负数从大到小
list = [7,-8,5,4,0,-2,-5]
def sort_1(num):
    lst1 = []
    lst2 = []
    for i in num:
        if i<0:
            lst2.append(i)
        else:
            lst1.append(i)
    return sorted(lst1)+sorted(lst2,reverse=True)
print(sort_1(list))